package com.freemalll.merchant.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.freemalll.merchant.domain.dto.RegisterStepDto;
import com.freemalll.merchant.domain.entity.MerMerchantRegisterStep;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 映射层。
 *
 * @author songshixiong
 * @since 2025-05-21
 */
@Mapper
public interface MerMerchantRegisterStepMapper extends BaseMapper<MerMerchantRegisterStep> {

    @Select(" select mer_id,step_name,complete_flag,step_type,current_flag,submit_time from mer_merchant_register_step where delete_flag = 0 and mer_id = #{merId} order by order_no ")
    List<RegisterStepDto> listByMerId(@Param("merId") String merId);
}
